﻿//-----------------------------------------------------------------------
// <Copyright>
// * Copyright (C) 2022 RuYiAdmin All Rights Reserved
// </Copyright>
//-----------------------------------------------------------------------

using Quartz;
using RuYiAdmin.Net.Common.Utility;
using System.Threading.Tasks;

namespace RuYiAdmin.Net.Service.QuartzJobs
{
    /// <summary>
    /// 定时短信作业
    /// </summary>
    public class MessageJob : IJob
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public MessageJob()
        {
        }

        /// <summary>
        /// 定时短信作业执行
        /// </summary>
        /// <param name="context">作业执行对象</param>
        /// <returns></returns>
        public Task Execute(IJobExecutionContext context)
        {
            //执行定时发送短信作业
            RuYiLoggerContext.Info("Message Job Executed!");
            return Task.CompletedTask;
        }
    }
}
